﻿using System;

using Fuse8.DomainFramework.Domain;

namespace Fuse8.DomainFramework.BusinessService
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    /// <typeparam name="TKey"></typeparam>
    public class EntityPreEventArgs<TEntity,TKey> : EntityEventArgs<TEntity, TKey> 
        where TEntity : class, IEntityObject<TKey>
        where TKey : IComparable<TKey>, IEquatable<TKey> 
    {
        /// <summary>
        /// Gets or sets a value indicating whether the action undertaken should be cancelled 
        /// </summary>
        public bool Cancel { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public EntityPreEventArgs()
            : base()
        { }
    }
}
